package com.kkang.ch3.aware;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.IOException;

/**
 * @author yongk_liu **/
public class Main {
    public static void main(String[] args) throws IOException {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AwareConfig.class);

        DemoAwareService awareService = applicationContext.getBean(DemoAwareService.class);
        awareService.outputResult();

        applicationContext.close();
    }
}
